// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  app: {
    pageTransition: { name: 'page', mode: 'out-in' },
  },
  compatibilityDate: '2024-11-01',
  devtools: { enabled: true },
  modules: ['@element-plus/nuxt', '@unocss/nuxt', '@pinia/nuxt', '@pinia-plugin-persistedstate/nuxt'],
  elementPlus: {
    /** Options */
  },
  css: ['~/assets/global.css', 'reset.css/reset.css', '~/assets/font-awesome-4.7.0/css/font-awesome.min.css'],
  piniaPersistedstate: {
    cookieOptions: {
      maxAge: 2 * 365 * 24 * 60 * 60 * 1000,
    },
    storage: 'localStorage',
  },
  imports: {
    dirs: ['stores/**', 'api/**'],
  },
});
